package com.yi.student.filter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

public class InitServerlet extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7490575315648183738L;

	@Override
	public void init() throws ServletException {
		WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(
									this.getServletContext());
		
		WebserviceUtils.setWac(wac);
	}
}
